package org.example.transaction.service;

import org.example.transaction.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;



    @Transactional(propagation = Propagation.REQUIRED)
    public Integer insertUserInfo(String userName,String password){
        return userInfoMapper.InsertUserInfo(userName,password);
    }

}
